package com.common.constants.redisKey;

/**
 * Created by Administrator on 2015/7/31.
 */
public class CommonKeys {
    /**短信验证码队列*/
    public final static String MOBILE_CODE_LIST = "mobile.code.list";
    /**公告队列*/
    public final static String AFFICHE_SEND_LIST = "affiche.send.list";
    /**根据会员ID绑定的token*/
    private final static String MEMBER_ID_TOKEN = ".token";
    /**根据手机号绑定的ID*/
    private final static String MEMBER_ID = ".id";
    /**根据ID绑定的mobile*/
    private final static String MEMBER_MOBILE = ".mobile";
    /**根据手机号绑定短信验证码*/
    public final static String MOBILE_CODE = ".code";

    /**根据保险师ID和保险产品生成短链接 */
    public final static String PRODUCT_SHORT_URL = ".shortUrl";

    public final static String getMemberToken(String memberId){
        return memberId + MEMBER_ID_TOKEN;
    }


    public final static String getMemberId(String mobile){
        return mobile + MEMBER_ID;
    }

    public final static String getMemberMobile(String memberId){
        return memberId + MEMBER_MOBILE;
    }

    public final static String getMobileCode(String mobile){
        return mobile + MOBILE_CODE;
    }

    public final static String getShortUrl(String shortUrl){
        return shortUrl + PRODUCT_SHORT_URL;
    }

}
